import * as React from 'react'
import { Link } from 'react-router-dom'; // 路由跳转
import './box.css' // 引入样式文件
import 'font-awesome/css/font-awesome.min.css' // 引入字体icons
/**定义组件props */
export interface Props {

}
// props是父组件传递进来的参数，react基础使用就不细说了
export default class Box extends React.Component<Props, object> {

  render() {
    return (
      <div className="hello">
        <Link to="/" replace>首页 </Link>
        <div className="greeting"> Box组件</div>
        <Link to="/box" replace>box页面</Link>
        <i className="fa fa-address-book"></i>
      </div>
    );
  }
}
